﻿using LiveCharts;
using LiveCharts.Wpf;
using System;
using System.Windows;

namespace handyTest.View.handy
{
    /// <summary>
    /// Window3.xaml 的交互逻辑
    /// </summary>
    public partial class Window3 : Window
    {
        public Window3()
        {
            InitializeComponent();

            //SeriesCollection_win3 = new SeriesCollection
            //{
            //    new ColumnSeries
            //    {
            //        Title = "2015",
            //        Values = new ChartValues<double> { 10, 50, 39, 50 }
            //    }
            //};

            ////adding series will update and animate the chart automatically
            //SeriesCollection_win3.Add(new ColumnSeries
            //{
            //    Title = "2016",
            //    Values = new ChartValues<double> { 11, 56, 42 }
            //});

            ////also adding values updates and animates the chart automatically
            //SeriesCollection_win3[1].Values.Add(48d);

            //Labels_win3 = new[] { "Maria", "Susan", "Charles", "Frida" };
            //Formatter_win3 = value => value.ToString("N");

            DataContext = this;
        }

        public SeriesCollection SeriesCollection_win3 { get; set; }
        public string[] Labels_win3 { get; set; }
        public Func<double, string> Formatter_win3 { get; set; }
    }
}
